package com.bugman.business;

import com.bugman.entity.User;
import com.bugman.exceptions.UsernameExistException;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author Flashman
 */
@Local
public interface UserService {

    public boolean usernameExist(String username);
    public void registerUser(User newUser) throws UsernameExistException;
    public void setDeveloper(User user);
    public void setDevelopers(List<User> users);
    public void saveProfile(User user);
    public List<User> getAllUsers();
    public List<User> getUsers(Byte roleId);
    public List<User> getDevelopers(User except);
    public User getUser(String nick);
    public List<User> getUsers(List<Integer> userIds);

}
